package com.cloud.mall.conf;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Configuration;

/**
 * @Author: 梁二东
 * @Date: 2025/1/7 22:55
 * @Description:
 **/
@Configuration
@ConfigurationProperties(prefix = "product.datasource")
@Data
public class ProductDataSourceProperties {

    private String type;
    private String driverClassName;
    private String url;
    private String username;
    private String password;
    private Integer initialSize;
    private Integer minIdle;
    private Integer maxActive;
    private Long maxWait;
    private Long timeBetweenEvictionRunsMillis;
    private Long minEvictableIdleTimeMillis;
}
